<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript">
	function setWeiZhi(obj,weizhi,siteName){
		if(!$(obj).hasClass("sitechecked")){
			$(obj).addClass("sitechecked");
			$("#"+weizhi).show();
			$("#"+weizhi).find("span").html(siteName);
		}else{
			$(obj).removeClass("sitechecked");
			$("#"+weizhi).hide();
		}
	}
</script>
<div id="changeSite" class="font16"  style="position:absolute;z-index:100000;background-color:#fff;border:1px solid #cfcfcf;box-shadow: 2px 2px 5px #efefef;display:none;">
	<div class="em80"></div>
	<div class="em35 widthall">
		<div class="floatleft div25"></div>
		<div id="jttop" class="floatleft chooseSiteTitle">
			<div class="floatleft colorbar"></div>
			<div class="floatleft lineh35"><span class="paddingL20">集团&地区列表</span></div>
		</div>
		<div id="jtkongbai0" class="floatleft div25"></div>
		<input id="firstSiteId" type="hidden">
		<input id="secondSiteId" type="hidden">
		<div id="recentPlace" class="floatleft chooseSiteMain noselect">
			<div class="floatleft colorbar"></div>
			<div class="floatleft lineh35"><span class="paddingL20">当前位置：</span></div>
		</div>
		<div class="floatleft div25"></div>
		<div class="cleardiv"></div>
	</div>
	<div class="em15"></div>
	<div class="em400">
		<div class="floatleft div25"></div>
		<div id="jtcenter" class="floatleft chooseSiteTitle indexhline">
			<div class="em50 lineh50 bgefefef widthall">
				<span class="paddingL20">集团&地区选择</span>
			</div>
			<div class="em50 bgf6f6f6">
				<div class="em10"></div>
				<div class="em35" style="padding-left: 1em; padding-right: 1em">
					<div class="lineh35 whitediv heigthall">
						<div class="floatleft" style="width: 85%">
							<input type="text" id="jt_jtSiteName"
								class="width95p paddingL1em whiteborder" />
						</div>
						<div class="floatright heigthall hand" style="width: 12%">
							<img onclick="showLoading();searchJt()" src="images/research.png"
								style="vertical-align: middle" />
						</div>
					</div>
				</div>
			</div>
			<div class="em15"></div>
			<div id="jtResultDiv" class="em270 autoflow" style="padding-left:1em">
				<c:forEach items="${jtDqList}" var="jt">
					<div class="em45">
						<div class="em35">
							<div onclick="leftCheck('${jt.siteid}','jtSelectedDiv')" id="${jt.siteid}" class="floatleft divcheck">
								<div class="divchecked hide"></div>
							</div>
							<span class="floatleft kongxi"></span>
							<div title="${jt.sitename}" class="em35 lineh35 floatleft paddingL1em subbus" style="width: 60%">
								${jt.sitename}
							</div>
						</div>
					</div>
				</c:forEach>
			</div>
			<div class="em20"></div>
		</div>
		<div id="jtkongbai" class="floatleft div25"></div>
		<div class="floatleft chooseSiteMain">
			<div class="floatleft width25p indexhline">
				<div class="em50 lineh50 bgefefef widthall xauto">
				<span class="paddingL20">广场选择</span><span id="shaixuan" class="floatright paddingR1em hand noselect" onclick="SxGC(this)">筛选﹀</span>
				</div>
				<div class="em50 bgf6f6f6 xauto">
					<div class="em10"></div>
					<div class="em35" style="padding-left: 1em; padding-right: 1em">
						<div class="lineh35 whitediv heigthall">
							<div class="floatleft" style="width: 85%">
								<input type="text" id="gc_gcSiteName"
									class="width95p paddingL1em whiteborder" />
							</div>
							<div class="floatright heigthall hand" style="width: 12%">
								<img onclick="showLoading();searchGc()" src="images/research.png"
								style="vertical-align: middle" />
							</div>
						</div>
					</div>
				</div>
				<div class="em15"></div>
				<div id="gcResultDiv" class="em270 autoflow" style="padding-left:1em">
					<c:forEach items="${squareChange.gcList}" var="gc">
						<div class="em45">
							<div class="em35">
								<c:choose>
									<c:when  test="${gc.sitestaus eq 1}">
										<div onclick="leftCheck('${gc.siteid}','gcSelectedDiv')" id="${gc.siteid}" class="floatleft divcheck">
											<div class="divchecked hide"></div>
										</div>
									</c:when>
									<c:otherwise>
										<div  id="${gc.siteid}" class="floatleft" style="width:2.1875em;height:2.1875em">
											
										</div>
									</c:otherwise>
								</c:choose>
								<span class="floatleft kongxi"></span>
								<div id="right${gc.siteid}" onclick="showLoading();rightGcCheck('${gc.siteid}')" title="${gc.sitename}" class="em35 lineh35 floatleft paddingL1em sitecheck subbus" style="width: 60%">
									${gc.sitename}
								</div>
							</div>
						</div>
					</c:forEach>
				</div>
				<div class="em20"></div>
			</div>
			<div class="floatleft width75p">
				<div id="GCSX" class="hide width96p em400">
					<div class="em50 lineh50 bgefefef widthall whiteBL">
					</div>
					<div class="indexhline widthall em350">
						<div class="em10"></div>
						<div id="diqu" class="lineh45" style="padding-left: 1em">
							地区：
							<span><a id="dq_buxian" href="javascript:showLoading();diquClick('-1')" class="clickDiqu">不限</a> </span>
							<c:forEach items="${squareChange.dqList}" var="gcModel">
								<span class="kongxi"></span>
								<a href="javascript:showLoading();diquClick('${gcModel.dqSiteId}')">${gcModel.dqSiteName}</a>
							</c:forEach>
						</div>
						<div class="lineh45" style="padding-left: 1em">
							区划：
							<input type="hidden" id="guojia" value='${squareChange.guojia}'>
							<select id="guojiaCombo" class="em35" onchange="showLoading();comboChange(0);">
								<option value="-1">
									请选择
								</option>
							</select>
							<span style="width: 1em; display: inline-block"></span>
							<select id="shengCombo" class="em35" onchange="showLoading();comboChange(1);">
								<option>
									请选择
								</option>
							</select>
							<span style="width: 1em; display: inline-block"></span>
							<select id="shiCombo" class="em35" onchange="showLoading();comboChange(2);">
								<option>
									请选择
								</option>
							</select>
							<span style="width: 1em; display: inline-block"></span>
							<select id="quCombo" class="em35" onchange="showLoading();comboChange(3);">
								<option>
									请选择
								</option>
							</select>
						</div>
					</div>
				</div>
				<div id="NoGCSX" class="widthall">
					<div id="qyTopDiv" class="floatleft width31p indexhline">
						<div class="em50 lineh50 bgefefef widthall whiteBL">
							<span class="paddingL20">区域选择</span>
						</div>
						<div class="em50 bgf6f6f6 xauto">
							<div class="em10"></div>
							<div class="em35" style="padding-left: 1em; padding-right: 1em">
								<div class="lineh35 whitediv heigthall">
									<div class="floatleft" style="width: 85%">
										<input type="text" id="qy_qySiteName"
											class="width95p paddingL1em whiteborder" />
									</div>
									<div class="floatright heigthall hand" style="width: 12%">
										<img onclick="showLoading();searchQy()" src="images/research.png"
										style="vertical-align: middle" />
									</div>
								</div>
							</div>
						</div>
						<div class="em15"></div>
						<div id="qyResultDiv" class="em270 autoflow" style="padding-left:1em">
						</div>
						<div class="em20"></div>
					</div>
					<div id="lcTopDiv" class="floatleft width31p indexhline">
						<div class="em50 lineh50 bgefefef widthall whiteBL">
							<span class="paddingL20">楼层选择</span>
						</div>
						<div class="em50 bgf6f6f6 xauto">
							<div class="em10"></div>
							<div class="em35" style="padding-left: 1em; padding-right: 1em">
								<div class="lineh35 whitediv heigthall">
									<div class="floatleft" style="width: 85%">
										<input type="text" id="lc_lcSiteName"
											class="width95p paddingL1em whiteborder" />
									</div>
									<div class="floatright heigthall hand" style="width: 12%">
										<img onclick="showLoading();searchLc()" src="images/research.png"
										style="vertical-align: middle" />
									</div>
								</div>
							</div>
						</div>
						<div class="em15"></div>
						<div id="lcResultDiv" class="em270 autoflow" style="padding-left:1em">
						</div>
						<div class="em20"></div>
					</div>
					<div id="dpTopDiv" class="floatleft width31p indexhline">
					<div class="em50 lineh50 bgefefef widthall whiteBL">
							<span class="paddingL20">店铺选择</span>
						</div>
						<div class="em50 bgf6f6f6 xauto">
							<div class="em10"></div>
							<div class="em35" style="padding-left: 1em; padding-right: 1em">
								<div class="lineh35 whitediv heigthall">
									<div class="floatleft" style="width: 85%">
										<input type="text" id="dp_dpSiteName"
											class="width95p paddingL1em whiteborder" />
									</div>
									<div class="floatright heigthall hand" style="width: 12%">
										<img onclick="showLoading();searchDp()" src="images/research.png"
										style="vertical-align: middle" />
									</div>
								</div>
							</div>
						</div>
						<div class="em15"></div>
						<div id="dpResultDiv" class="em270 autoflow" style="padding-left:1em">
						</div>
						<div class="em20"></div>
					</div>
				</div>
			</div>
		</div>
		<div class="floatleft div25"></div>
		<div class="cleardiv"></div>
	</div>
	<div>
		<div class="floatleft div25 defaultheight"></div>
		<div id="jtfoot" class="floatleft chooseSiteTitle indexhline btmline">
			<div class="em50 lineh50 bgefefef widthall">
				<span class="paddingL20">已选集团&地区</span>
			</div>
			<div class="em15"></div>
			<div id="jtSelectedDiv" class="paddingL1em minem45">
			</div>
			<div class="em15"></div>
		</div>
		<div id="jtkongbaier" class="floatleft div25 defaultheight"></div>
		<div class="floatleft chooseSiteMain">
			<div class="floatleft width25p indexhline  btmline">
				<div class="em50 lineh50 bgefefef widthall">
					<span class="paddingL20">已选广场</span>
				</div>
				<div class="em15"></div>
				<div id="gcSelectedDiv" class="paddingL1em minem45">
				</div>
				<div class="em15"></div>
			</div>
			<div class="floatleft width75p">
				<div id="qyDownDiv" class="floatleft width31p indexhline  btmline">
					<div class="em50 lineh50 bgefefef widthall whiteBL">
						<span class="paddingL20">已选区域</span>
					</div>
					<div class="em15"></div>
					<div id="qySelectedDiv" class="paddingL1em minem45">
					</div>
					<div class="em15"></div>
				</div>
				<div id="lcDownDiv" class="floatleft width31p indexhline  btmline">
					<div class="em50 lineh50 bgefefef widthall whiteBL">
						<span class="paddingL20">已选楼层</span>
					</div>
					<div class="em15"></div>
					<div id="lcSelectedDiv" class="paddingL1em minem45">
					</div>
					<div class="em15"></div>
				</div>
				<div id="dpDownDiv" class="floatleft width31p indexhline  btmline">
					<div class="em50 lineh50 bgefefef widthall whiteBL">
						<span class="paddingL20">已选店铺</span>
					</div>
					<div class="em15"></div>
					<div id="dpSelectedDiv" class="paddingL1em minem45">
					</div>
					<div class="em15"></div>
				</div>
			</div>
		</div>
		<div class="floatleft div25"></div>
		<div class="cleardiv"></div>
	</div>
	<div>	
		<div class="floatleft div25"></div>
	</div>
	<div class="em10"></div>
	<div class="em35">
		<div class="floatleft div25"></div>
		<div class="floatleft">
			<input type="button" class="btn" value="清空" onclick="qingkong();"><span class="inblock" style="width:0.625em"></span>
			<input type="button" class="btn" value="确定" onclick="queding()">
		</div>
	</div>
	<div class="em25"></div>
	<input type="hidden" id="selectedSiteList" value='${selectedSiteList}'>
	<!-- 选广场 -->
	<form action="ajaxSearchGc">
		<!-- 商圈 -->
		<input type="hidden" id="gc_sqSiteId">
		<!-- 省市区 -->
		<input type="hidden" id="gc_countryId">
		<input type="hidden" id="gc_provinceId">
		<input type="hidden" id="gc_cityId">
		<input type="hidden" id="gc_areaId">
		<!-- 地区 -->
		<input type="hidden" id="gc_dqSiteId">
		<!-- 搜索栏中广场名称 -->
		<input type="hidden" id="gc_gcInput">
	</form>
	<input type="hidden" id="selectType" value="${selectType}">
	<form method="post" id="backForm" action="${backPage}">
		<input type="hidden" id="backGcSiteString" name="siteId">
	</form>
	<input type="hidden" id="pageType" value="${pageType}">
</div>